#include "player.h"

Player::Player(Hand * hand)
{
    m_hand = hand;
    if_stay = true;
    m_chip = 0;
    c_chip = 10;
    if_all = false;
}

void Player::set_hand(Card *card)
{
    m_hand->set_card(card);
}

int Player::get_rank()
{
    return m_hand->get_rank();
}

void Player::set_chip(int x)
{
    m_chip = x;
}

int Player::get_chip()
{
    return m_chip;
}

void Player::change_chip(int chip)
{
    m_chip = chip;
}

void Player::change_c_chip(int chip)
{
    c_chip = chip;
}

int Player::get_c_chip()
{
    return c_chip;
}

